#include "main.hpp"

Container::Container(int size) : size(size)
{
    for (int i=0;i<MaxSlots;i++)
        itemSlot[i] = NULL;
}

Container::~Container() {
	inventory.clearAndDelete();
}

bool Container::add(Actor *actor) {
	if ( size > 0 && inventory.size() >= size ) {
		// inventory full
		return false;
	}
	inventory.push(actor);
	return true;
}

void Container::remove(Actor *actor) {
	inventory.remove(actor);
}
